Guarded Induction and Weakly Final Coalgebras in Dependent Type Theory
نویسندگان
چکیده
We introduce concepts for representing interactive programs in dependent type theory. The representation uses a monad, as in Haskell. We consider two versions, one, in which the interface with the real world is fixed, and another one, in which the interface varies depending on previous interactions. We then generalise the monadic construction to polynomial functors. Then we look at rules needed in order to introduce weakly final coalgebras in dependent type theory. We arrive at the notion of coiteration, and investigate its relationship to guarded induction. Finally we explore the relationship between state dependent coalgebras and bisimulation.
منابع مشابه
Interactive Programs and Weakly Final Coalgebras in Dependent Type Theory (Extended Version)
We reconsider the representation of interactive programs in dependent type theory that the authors proposed in earlier papers. Whereas in previous versions the type of interactive programs was introduced in an ad hoc way, it is here defined as a weakly final coalgebra for a general form of polynomial functor. The are two versions: in the first the interface with the real world is fixed, while i...
متن کاملInterfaces as functors, programs as coalgebras - A final coalgebra theorem in intensional type theory
In [17,19] Peter Hancock and Anton Setzer introduced rules to extend Martin-Löf’s type theory in order to represent interactive programming. The rules essentially reflect the existence of weakly final coalgebras for a general form of polynomial functor. The standard rules of dependent type theory allow the definition of inductive types, which correspond to initial algebras. Coalgebraic types ar...
متن کاملState Dependent IO-Monads in Type Theory
We introduce the notion of state dependent interactive programs for Martin-Löf Type Theory. These programs are elements of coalgebras of an endofunctor on the presheaf category S → Set. We prove the existence of final coalgebras for these functors. This shows as well the consistency of type theory plus rules expressing the existence of weakly final coalgebras for these functors, which represent...
متن کاملMonads of coalgebras: rational terms and term graphs
This paper introduces guarded and strongly guarded monads as a unified model of a variety of different term algebras covering fundamental examples such as initial algebras, final coalgebras, rational terms and term graphs. We develop a general method for obtaining finitary guarded monads which allows us to define and prove properties of the rational and term graph monads. Furthermore, our treat...
متن کاملCoalgebras in functional programming and type theory
This is a survey article on the use of coalgebras in functional programming and type theory. It presents the basic theory underlying the implementation of coinductive types, families and predicates. It gives an overview of the application of corecursive methods to the study of general recursion, formal power series, tabulations of functions on inductive data. It also sketches some advanced topi...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2004